﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Articles.master" AutoEventWireup="false" CodeFile="AddArticles.aspx.vb" Inherits="AddArticles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2"  ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
<fieldset>
<legend><h2>Article</h2></legend>
<ul>
    <li><asp:Label ID="lblTitle" runat="server" Text="Title :"></asp:Label>
        <asp:TextBox ID="txtTitle" runat="server" Width="302px"></asp:TextBox></li>
     <li><asp:Label ID="lblAbstract" runat="server" Text="Abstract :"></asp:Label>
         <asp:TextBox ID="txtAbstract" runat="server" Width="272px"></asp:TextBox></li>

<li>Article Content:<asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" 
        Height="277px" Width="330px" ToolTip="Enter Article Details here"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
        ErrorMessage="Article must contain details" ControlToValidate="txtcontent"></asp:RequiredFieldValidator></li>
       </ul>
</fieldset>

<fieldset>
<legend><h2>Article Details</h2></legend>    
<ul>
<li>Article Topic:<asp:DropDownList ID="ddl_Articles" runat="server" 
        DataSourceID="DSArticles" DataTextField="Type" DataValueField="ID" 
        ToolTip="Choose Contest Category">
    </asp:DropDownList></li>
  <!--  <asp:SqlDataSource ID="DDLArticles" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT [ID], [Type] FROM [tblArtCategory]">
    </asp:SqlDataSource>-->
    <asp:SqlDataSource ID="DSArticles" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT * FROM [tblArticleType]"></asp:SqlDataSource>
    <br>
   <li>Submit Picture:<asp:TextBox ID="txtPicture" runat="server" 
        ToolTip="Uload Picture with article"></asp:TextBox><asp:FileUpload ID="FileUpload1" runat="server" /></li>
        </ul>
</fieldset>
<ul>
   <li> <asp:Button ID="btnSubmit" runat="server" Text="Submit Article" /></li>
    </ul>
</asp:Content>

